import request from "@/api/request";

const reward = {
	// 获取奖励列表
	getRewardListAPI: (data = {}) => {
		return request({
			url: '/api/taskReward/lists',
			method: 'POST',
			data
		})
	},

	// 任务报名订单列表
	getTaskOrderListAPI: (data = {}) => {
		return request({
			url: '/api/taskEnroll/lists',
			method: 'POST',
			data
		})
	},

	// 获取任务详情
	getTaskDetailAPI: (data = {}) => {
		return request({
			url: '/api/taskReward/detail',
			method: 'POST',
			data
		})
	},

	// 报名任务详情
	getSignUpTaskDetailAPI: (data = {}) => {
		return request({
			url: '/api/taskEnroll/detail',
			method: 'POST',
			data
		})
	},
	// 报名任务
	getSignUpTaskAPI: (data = {}) => {
		return request({
			url: '/api/taskReward/enrollTask',
			method: 'POST',
			data
		})
	},

	// 取消任务报名
	getCancelSignUpTaskAPI: (data = {}) => {
		return request({
			url: '/api/taskReward/cancelTask',
			method: 'POST',
			data
		})
	},

	// 去购买套餐
	getBuyTaskPackageAPI: (data = {}) => {
		return request({
			url: '/api/taskEnroll/buyTaskPackage',
			method: 'POST',
			data
		})
	},

	// 获取任务素材
	getTaskAssetAPI: (data = {}) => {
		return request({
			url: '/api/taskEnroll/assignMaterial',
			method: 'POST',
			data
		})
	},

	// 关联下单列表
	getBuyTaskPackageListAPI: (data = {}) => {
		return request({
			url: '/api/taskEnroll/buyTaskPackage',
			method: 'POST',
			data
		})
	},

	// 提交任务笔记凭证
	getSubmitTaskNoteAPI: (data = {}) => {
		return request({
			url: '/api/taskEnroll/submitTaskNotesReview',
			method: 'POST',
			data
		})
	}


}

export default reward;